POV-Ray : Newsgroups : povray.general : orthographic projection of game tiles.... : Re: orthographic projection of game tiles.... Server Time
12 Aug 2024 09:15:31 EDT (-0400)
  Re: orthographic projection of game tiles....  
From: Stephen Guentert
Date: 1 Mar 1999 22:15:32
Message: <36db57d4.0@news.povray.org>
I messed with the up and right vectors and got it to work perfectly.
I didn't use all those #declares and #locals though.  notice that everything
is scaled up by 10.  notice also that my right vector is the square root of
2 (scaled by 10).  my up vector is 1.63 (scaled again).
this gives me exactly what I want - but I'd like to understand the
mathematical significance of these numbers.

and also, is anyone interested in doing some images for a shareware game?

heres my tile.ini:

Width = 512
Height = 512
Bounding_Threshold = 3
Display=On
Verbose=On
Library_Path=C:\Program Files\POV-Ray for Windows\INCLUDE
Input_File_Name=tile2.pov
Output_File_Name=C:\WINDOWS\Desktop\images\


heres my tile.pov:

global_settings {
  ambient_light <1.0,1.0,1.0>
  assumed_gamma 1.9
}

background { color <0.000,0.000,0.000> }

camera {  //  Camera StdCam
orthographic
  location  <10 , 10, 10 >
  right     <0  , 1.4142135623730950488016887242097 * 10 , 0.0 >
  up        <1.63 * 10, 0.0 , 0.0 >
  direction <0  , 0 , 1 >
  look_at   <0.000, 0.000, 0.000>


}

//
// *******  L I G H T S *******
//

light_source {   // Light1
  <10.000, 20.000, 20.000>
  color rgb <1.000, 1.000, 1.000>
}


//  Moray V3.01 For Windows (c) 1991-1998 Lutz + Kretzschmar
//

//
// ********  TEXTURES  *******
//

#include "tile2.inc"


//
// ********  REFERENCED OBJECTS  *******
//



//
// ********  OBJECTS  *******
//
sphere { //left foot
  <0, 0, 0>, .5
  texture {
    Tiles
  }
  scale <2,1,1>
  translate <5, 0, 3>
}

sphere { //right foot
  <0, 0, 0>, .5
  texture {
    Tiles
  }
  scale <2,1,1>
  translate <5, 0, 7>

}

sphere { // head
  <0, 0, 0>, .75
  texture {
    Tiles
  }
  translate <5, 8, 5>
}

sphere { // torso
  <0, 0, 0>, 1
  texture {
    Tiles
  }
  scale <.5,1,1>
  translate <5, 6, 5>

}


sphere { // hips
  <0, 0, 0>, 1
  texture {
    Tiles
  }
  scale <.5,.75,1>
  translate<5, 4, 5>
}

sphere { // left shin
  <0, 0, 0>, 1
  texture {
    Tiles
  }
  scale <.5,1,.5>
  rotate <10,0,0>
  translate<5, 1.5, 3.25>
}

sphere { // left thigh
  <0, 0, 0>, 1
  texture {
    Tiles
  }
  scale <.5,1,.5>
  rotate <10,0,0>
  translate<5, 3, 3.75>
}

sphere { // right shin
  <0, 0, 0>, 1
  texture {
    Tiles
  }
  scale <.5,1,.5>
  rotate <-10,0,0>
  translate<5, 1.5, 6.75>
}

sphere { // right thigh
  <0, 0, 0>, 1
  texture {
    Tiles
  }
  scale <.5,1,.5>
  rotate <-10,0,0>
  translate<5, 3, 6.25>
}


plane { // Plane001
  y,0
  texture {
    Tiles
  }
  scale 10.0
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.